package com.boot.dog.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.boot.dog.common.util.ApiResult;
import com.boot.dog.entities.ao.RoleAo;
import com.boot.dog.entities.dto.RolePermissionDto;
import com.boot.dog.entities.pojo.Role;
import com.boot.dog.entities.vo.RoleVo;

import java.util.List;

/**
 * @Author: MaxLv
 * @Date: 2020/1/13
 */
public interface RoleService {

    ApiResult<IPage<RoleVo>> getRoles(Page page, RoleAo ao);

    ApiResult<Void> saveRole(Role role);

    ApiResult<Void> editRole(Role role);

    ApiResult<Void> delById(Integer id);

    ApiResult<Void> editRolePerm(RolePermissionDto dto);

    ApiResult<List<Role>> getAllRole();
}
